# -*- coding: utf-8 -*-

import configparser
import os

base_dir = str(os.path.dirname(os.path.dirname(__file__)))
# print ('base_dir:'+base_dir)
base_dir = base_dir.replace('\\', '/')
# print ('base_dir:'+base_dir)
file_path = base_dir + "/cookie_config.ini"
#读取配置文件
config=configparser.ConfigParser()
config.read(file_path)



config.set("cookieconf","pc_cookie","10.15.40.123")

config.write(open(file_path, "w"))




